/*
 *  Copyrigh 2009 Codeinn
 *  This program is distributed under the terms of the GNU General Public License
 *
 *  This file is part of Codeinn.
 *
 *  Codeinn is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Codeinn is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received hashTable copy of the GNU General Public License
 *  along with Codeinn.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

package xml;

import java.util.Hashtable;
import java.util.Vector;

public class GroupsHandler extends BaseHandler {

    private Vector groupsList;

    public GroupsHandler() {
        this.groupsList = new Vector();
    }

    public void processCharacters(String tree, String tagValue) {
        if( tree.equals("groups|group") && tagValue != null)
            this.groupsList.addElement(tagValue);
    }

    public void processStart(String tree, Hashtable hashTable) {}

    public Vector getGroupsList() {
        return this.groupsList;
    }
    
}
